import { openapiTypescriptExpand } from "@xiankq/openapi-typescript-expand";
import axios from "axios";

(async () => {
	const { data } = await axios.request({
		url: "http://192.168.0.245:9081/whManager/v3/api-docs",
	});

	openapiTypescriptExpand(data, {
		output: "./src/genapi/wh.ts",
		requestName: "whRequest",
		headerCode: 'import {whRequest} from "./request";\n',
	});
})();
